package fecat.ui.frame;

import java.awt.Dimension;

import javax.swing.JComponent;

import fecat.services.quote.QuoteService;
import fecat.services.resource.ResourceService;
import fecat.ui.contextpanel.exchange.ExchangeRateContainer;
import fecat.util.SwingResourceManager;

public class AdvanceQuoteFrame extends BaseFrame {

	public AdvanceQuoteFrame(String name) {
		super(name);
	}
	public JComponent createChildComponent(){
		ExchangeRateContainer desktop=new ExchangeRateContainer();
//		QuoteService.addQuoteChangeListener(desktop);
        desktop.setPreferredSize(new Dimension(500,500));
        this.addComponentListener(desktop.getComponentListener());
		return desktop;
	}
	public void updateText() {
		String title=ResourceService.getString("Frame.Advance.Title");
		this.setTitle(title);
		String tabTitle=ResourceService.getString("Frame.Advance.TabTile");
		this.setTabTitle(tabTitle);
	}
}
